{include file="./public/footer" /}
{include file="./public/menu" /}
<!--/sidebar-->
<div class="main-wrap">

    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="/admin.php">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">娱乐项目管理</span></div>
    </div>
    <div class="search-wrap">
        <div class="search-content">
            <form action="/admin.php/disport/lists" method="post">
                <table class="search-tab">
                    <tr>
                        <!--<th width="120">选择类型:</th>-->
                        <!--<td>-->
                            <!--<select name="type" id="">-->
                                <!--<option value="0">全部</option>-->

                                    <!--<option value=""></option>-->

                            <!--</select>-->
                        <!--</td>-->
                        <th width="70">关键字:</th>
                        <td><input class="common-text" placeholder="关键字" name="key_word" value="{$key_word}"  type="text"></td>
                        <td><input class="btn btn-primary btn2" type="submit"></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="result-wrap">
        <form  id="andy_sort">
            <div class="result-title">
                <div class="result-list">
                    <button type="button" id="button_add" ><i class="icon-font"></i>新增项目</button>
                    <button type="button" id="button_sort"><i class="icon-font"></i>更新排序</button>
                </div>
            </div>
            <div class="result-content">
                <table class="result-tab" width="100%">
                    <tr >
                        <th>排序</th>
                        <th>ID</th>
                        <th>项目名称</th>
                        <th>封面图</th>
                        <th>审核状态</th>
                        <th>更新时间</th>
                        <th>操作</th>
                    </tr>
                    {volist name="res" id="r"}
                        <tr style="text-align: center;">
                            <td>
                                <input class="common-input sort-input" name="sort[{$r.id}]" value="{$r.sort}" type="text">
                            </td>
                            <td>{$r.id}</td>
                            <!--<td ><a target="_blank" href="#" style="display:block;height:30px;width:50px;overflow: hidden;text-overflow: ellipsis;white-space:nowrap;">{$r.name}</a></td>
                            --><td >{$r.name}</td>
							<td><img src="{$r.cover}"  style="width:50px;height:30px;" alt=""></td>
                            <td><a href="#">{$r.status|getStatus}</a></td>
                            <td>{$r.update_time|date="Y-m-d H:i:s",###}</td>
                            <td>
                                <a href="#"><span onclick="edit.click(this)" attr-id="{$r.id}" >编辑</span></a>
                                <a href="#"><span onclick="del.click(this)" attr-id="{$r.id}" attr-msg="删除" attr-a="ware">删除</span></a>
                            </td>
                        </tr>
                    {/volist}
                </table>
            </div>
            {$res->render()}
        </form>
    </div>
</div>
<script>
    var SCOPE = {
        'add_url' : '/admin.php/disport/add',
        'edit_url' : '/admin.php/disport/edit',
        'set_status_url' : '/admin.php/disport/setStatus',
        'sort_url' : '/admin.php/disport/updateSort',
    };
</script>
<!--/main-->
{include file="./public/bottom" /}